<?php
interface HackerU_Interface_Crud
{
	/**
	 * 
	 * insert record
	 * @param assoc array $data (key == column name , value) 
	 */
	public function insert(array $data);
	
	/**
	 * 
	 * update records by condtions
	 * @param assoc array  $update(key == column name , value) 
	 * @param assoc array  $cond(key == column name , value) 
	 */
	public function update(array $update, array $cond);
	
	/**
	 * 
	 * delete records
	 * @param assoc array  $cond(key == column name , value) 
	 */
	public function delete(array $cond);
	
	
	public function select();
	
	/**
	 * 
	 * protect sql injection 
	 * @param string $s
	 */
	public function escape($s);
}